<?php

namespace CMBUBank\UBank\Response\TransManager;

use CMBUBank\Http\Response;
use CMBUBank\UBank\Response\UBankBaseResponse;

class TransManagerSubunitWhiteListResponse extends UBankBaseResponse
{
    protected $responseCode = ['ntdumrlqz1'];

    protected $pageCode = 'ntdumrlqz2';

    public function whiteList(): array
    {

        return $this->bussList;
    }

    public function pageFormat()
    {
        $hasNext = $this->pageInfo[0]['ctnkey'] ?? false;

        if ($hasNext) {
            $this->nextPage = $this->pageInfo[0]['rltacc'] ?? 0;
        }
    }

}